package com.nioPro.test;

import java.nio.ByteBuffer;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;

public class SocketContext {


	 private  final int BLOCK = 4096; 

	 private  Selector selector; 
	    
	 SocketChannel			m_Socket;	//
	// Store buffers
    ByteBuffer			m_WriteBuffer = ByteBuffer.allocate(BLOCK);			/*发送数据缓冲区*/ 
    ByteBuffer			m_CompressionBuffer = ByteBuffer.allocate(BLOCK);	// 接收到的压缩的数据
    ByteBuffer			m_DeCompressionBuffer = ByteBuffer.allocate(BLOCK);	// 解压后的数据
    ByteBuffer			m_ResendWriteBuffer = ByteBuffer.allocate(BLOCK);	// 上次发送的数据包，接收失败时重发时用

	int					m_Dialog[] = new int[2]; // 放对话框列表用，第一个int是类型，第二个是CDialog的地址
	int					m_nTransferProgress;
	char				m_group[] = new char[2];

	// Input Elements for Winsock
	//WSABUF			m_wsaInBuffer;
	Byte				m_byInBuffer[]= new Byte[8192];

	// Output elements for Winsock
	//WSABUF				m_wsaOutBuffer;
	//	HANDLE				m_hWriteComplete;

	// Message counts... purely for example purposes
	//LONG				m_nMsgIn;
	//LONG				m_nMsgOut;	

	//BOOL				m_bIsMainSocket; // 是不是主socket

	//ClientContext		m_pWriteContext;
	//ClientContext		m_pReadContext;

}
